package cn.kgc.vue.task;

import cn.kgc.vue.service.LogInfoService;
import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 课工场
 * @date 2024/10/8
 * @description  定时任务
 */
@Component
public class ScheduledTasks {

    @Resource
    private LogInfoService logInfoService;

    @Scheduled(cron="* * * L * ?")
    public void   testTask(){
        logInfoService.scheduledDeleteLogs();
    }

}
